package com.spring.cloud.service.impl;

import com.spring.cloud.dao.Week01Mapper;
import com.spring.cloud.entity.Week01;
import com.spring.cloud.service.Week01Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "week01Service")
public class Week01ServiceImpl implements Week01Service {

    @Autowired
    private Week01Mapper<Week01> week01Mapper;

    @Override
    public Integer insertSelective(Week01 week01) throws Exception {
        return this.week01Mapper.insertSelective(week01);
    }

    @Override
    public Integer insertBatch(List<Week01> week01) throws Exception {
        return this.week01Mapper.insertBatch(week01);
    }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
        return this.week01Mapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
        return this.week01Mapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Week01 week01) {
        return this.week01Mapper.updateByPrimaryKeySelective(week01);
    }

    @Override
    public Week01 findById(Object id) {
        return (Week01) this.week01Mapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Week01> selectByCondition(Week01 week01) {
        return (List<Week01>) this.week01Mapper.selectByCondition(week01);
    }

    @Override
    public Integer selectCountByCondition(Week01 week01) {
        return this.week01Mapper.selectCountByCondition(week01);
    }

}
